package com.lagou.pojo;

import javax.sql.DataSource;
import java.util.HashMap;
import java.util.Map;

/**
 * Configuration配置实体类，用于存放数据基本信息，Map<唯一标识, Mapper>: 唯一标识：namespace + “。” + id
 *
 * @author YiYa
 * @since 2020-11-05 下午 11:26
 */
public class Configuration {

    private DataSource dataSource;

    /**
     * key是statementId, value是封装好的mappedStatement对象
     */
    Map<String, MapperStatement> mapperStatementMap = new HashMap<>();

    public DataSource getDataSource() {
        return dataSource;
    }

    public void setDataSource(DataSource dataSource) {
        this.dataSource = dataSource;
    }

    public Map<String, MapperStatement> getMapperStatementMap() {
        return mapperStatementMap;
    }

    public void setMapperStatementMap(Map<String, MapperStatement> mapperStatementMap) {
        this.mapperStatementMap = mapperStatementMap;
    }
}
